{
  config,
  pkgs,
  lib,
  options,
  ...
}:
with lib; let
  user = "%USER%";
in {
  home = {
    packages = with pkgs; [
      gnome.gnome-tweaks
      gnome.gnome-themes-extra
      gnome.gnome-system-monitor
      gnome.dconf-editor

      gnomeExtensions.appindicator
      gnomeExtensions.clipboard-history
      gnomeExtensions.kimpanel # Input Method Panel using KDE's kimpanel protocol for Gnome-Shell
      gnomeExtensions.astra-monitor
      gnomeExtensions.bluetooth-battery
    ];
  };
  gtk = {
    enable = true;
    theme = {
      name = "WhiteSur-Light";
      package = pkgs.whitesur-gtk-theme;
    };
    iconTheme = {
      name = "WhiteSur";
      package = pkgs.whitesur-icon-theme; # pkgs.papirus-icon-theme
    };
  };
  dconf = {
    enable = true;
    settings = {
      "org/gnome/shell" = {
        disable-user-extensions = false;
        enabled-extensions = [
          "appindicatorsupport@rgcjonas.gmail.com" #系统托盘
          "dash-to-dock@micxgx.gmail.com"
          "clipboard-history@alexsaveau.dev" # 剪切板
          "kimpanel@kde.org"
          "blur-my-shell@aunetx" #毛玻璃
          # "BingWallpaper@ineffable-gmail.com"
          "apps-menu@gnome-shell-extensions.gcampax.github.com"
          "auto-move-windows@gnome-shell-extensions.gcampax.github.corm"
          "drive-menu@gnome-shell-extensions.gcampax.github.com"
          #"launch-new-instance@gnome-shell-extensions.gcampax.github.com"
          "light-style@gnome-shell-extensions.gcampax.github.com"
          "native-window-placement@gnome-shell-extensions.gcampax.github.com"
          "places-menu@gnome-shell-extensions.gcampax.github.com"
          "screenshot-window-sizer@gnome-shell-extensions.gcampax.github.com"
          "astra-monitor@gnome-shell-extensions.gcampax.github.com"
          "user-theme@gnome-shell-extensions.gcampax.github.com"
          # "window-list@gnome-shell-extensions.gcampax.github.com"
          # "windowsNavigator@gnome-shell-extensions.gcampax.github.com"
          #"workspace-indicator@gnome-shell-extensions.gcampax.github.com"
          "system-monitor@gnome-shell-extensions.gcampax.github.com"
          #"paperwm@paperwm.github.com"
          "material-shell@papyelgringo"
        ];
      };
      "org/gnome/desktop/interface" = {
        "show-battery-percentage" = true;
        clock-show-date = true;
        clock-show-weekday = true;
      };
      "org/gnome/mutter" = {
        experimental-features = ["scale-monitor-framebuffer"];
        center-new-windows = true;
      };
      "org/gnome/desktop/screensaver" = {
        lock-delay = 0;
        lock-enabled = true;
      };
      "org/gnome/desktop/session" = {
        idle-delay = 0;
      };
      #gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type 'nothing'
      #gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'nothing'
      "org.gnome.settings-daemon.plugins.power" = {
        sleep-inactive-ac-type = "nothing";
        sleep-inactive-battery-type = "nothing";
      };
      "org/gnome/settings-daemon/plugins/power" = {
        idle-dim = false;
        power-button-action = "suspend";
        sleep-inactive-ac-type = "nothing";
        sleep-inactive-battery-timeout = 1800;
        sleep-inactive-battery-type = "hibernate";
      };
      "org/gnome/desktop/wm/keybindings" = {
        close = ["<Alt>F4" "<Super><Shift>q"]; # 关闭窗口
        show-desktop = ["<Super>d"]; # win+d 显示桌面壁纸
      };
      "org/gnome/settings-daemon/plugins/media-keys" = {
        custom-keybindings = [
          "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/"
          "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/"
          "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2/"
          "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom3/"
          "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom4/"
        ];
        home = ["<Super>e"]; # 打开文件home 使用默认文件管理器
      };
      "org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0" = {
        binding = "<Super>Return";
        command = "terminator";
        name = "Open terminator";
      };
      "org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1" = {
        binding = "<Super>p";
        command = "flameshot gui";
        name = "Open flameshot gui";
      };
      "org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom2" = {
        binding = "<Shift><Ctrl>Escape";
        command = "gnome-system-monitor";
        name = "gnome-system-monitor";
      };
      "org/gnome/shell/extensions/blur-my-shell" = {hacks-level = 3;};
      "org/gnome/shell/extensions/blur-my-shell/applications" = {
        whitelist = ["terminator" "kitty" "emacs"];
        blur-on-overview = true;
        sigma = 44;
        opacity = 241;
      };
      "org/gnome/shell/extensions/blur-my-shell/appfolder" = {
        blur = true;
        dialog-opacity = 1;
      };
      "org/gnome/desktop/notifications/application/com-tencent-wechat" = {
        force-expanded = true;
        show-banners = true;
      };
    };
  };
}
